# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lightsoff
pkgver=40.0.1
pkgrel=2
arch="all"
url="https://wiki.gnome.org/Apps/Lightsoff"
pkgdesc="Turn off all the lights"
license="GPL-2.0-or-later"
makedepends="
	clutter-dev
	clutter-gtk-dev
	gtk+3.0-dev
	itstool
	librsvg-dev
	meson
	samurai
	vala
	"
checkdepends="desktop-file-utils"
source="https://download.gnome.org/sources/lightsoff/${pkgver%.*.*}/lightsoff-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="ac1f812c3297a42f1e5aa8b8cdda2884b5c2aea2ea0190047ba5a0f47254b191d2105d7d1b548f0233fdee1b0e6033a97265a1cb28503daf403ee4e2c53a1aca  lightsoff-40.0.1.tar.xz"
